package com.cyj.dream.core.constant;

/**
 * @Description: 缓存key常量
 * @BelongsProject: DreamChardonnay
 * @BelongsPackage: com.cyj.dream.core.constant
 * @Author: ChenYongJia
 * @CreateTime: 2021-09-27 12:59
 * @Email: chen87647213@163.com
 * @Version: 1.0
 */
public interface CacheConstants {

    /**
     * oauth 缓存前缀
     */
    String PROJECT_OAUTH_ACCESS = "sos_oauth:access:";

    /**
     * oauth 缓存令牌前缀
     */
    String PROJECT_OAUTH_TOKEN = "sos_oauth:token:";

    /**
     * redis记录用户登录失败次数key
     */
    String USER_LOGIN_FAILED_COUNT = "USER:LOGIN:FAILED:COUNT:";
    /**
     * 验证码前缀
     */
    String DEFAULT_CODE_KEY = "DEFAULT_CODE_KEY:";

    /**
     * 菜单信息缓存
     */
    String MENU_DETAILS = "menu_details";

    /**
     * 用户信息缓存
     */
    String USER_DETAILS = "user_details";

    /**
     * 选人组件数据
     */
    String SELECT_DATA = "SELECT_DATA";

    /**
     * 字典信息缓存
     */
    String DICT_DETAILS = "dict_details";

    /**
     * oauth 客户端信息
     */
    String CLIENT_DETAILS_KEY = "sos_oauth:client:details";

    /**
     * 参数缓存
     */
    String PARAMS_DETAILS = "params_details";

    /**
     * 参数缓存
     */
    String ONLINE_USER_INFO = "online_user_info:";

}
